 const mongoose=require("mongoose");
 mongoose.Promise=Promise;
 mongoose.connect("mongodb://localhost/test");

var Schema=new mongoose.Schema({
   userName:String,
   password:String,
 });

var User=mongoose.model("User",Schema);

    module.exports=User;
